StringDistance

String distances return a distance between two strings.

The returned distance will always be \(\geqslant 0\).

  • 0 indicates that both strings are equivalent. Equivalent strings are not necessarily identical.

  • If two strings are identical, then it should always return 0.

Author

Thibault Debatty, solonovamax

See also

Inheritors

Functions

Link copied to clipboard
abstract fun distance(s1: String, s2: String): Double

Computes the distance of two strings.